{%extends "base.html"%}
{%block title%}更改头像{%endblock%}
{%block sideleft%}{%include "sideleft.html"%}{%endblock%}
{%block content%}
<!--登录成功以后的内容-->
<div class="usericon">
	<h1>更改你的头像</h1>
	<form action="/accounts/user_icon/" method="post" enctype="multipart/form-data" id='icon_update'>{% csrf_token %}
		<table border="0" cellpadding="0" >
			<tr>
				<td><image src="{{request.session.userinfo.profile_image}}"></image></td>
				<td>
					<div class="m">从电脑中选择你喜欢的照片:</div><br/> 
    				<span class="pl">你可以上传JPG、JPEG、GIF、PNG或BMP文件。</span><br/> 
  					{{form.image}}
				</td>
			</tr>
			<tr><th></th><td>{{form.image.errors}}</td></tr>
			<tr>
				<td></td>
				<td><input type="submit" value="上传并保持图片"></td>
			</tr>
		</table>	
	</form>
</div>
{%endblock%}
{%block sideright%}{%include "sideright.html"%}{%endblock%}